import request from '@/plugins/axios'

export function recentdemandPage(query) {
    return request({
        url: '/api/recentdemand/page',
        method: 'get',
        params: query
    })
}

export function recentdemand(data) {
    return request({
        url: '/api/recentdemand',
        method: 'post',
        data: data
    })
}

export function getRecentdemand(id) {
    return request({
        url: '/api/recentdemand/' + id,
        method: 'get'
    })
}

export function recentdemandEdit(data) {
    return request({
        url: '/api/recentdemand',
        method: 'put',
        data: data
    })
}

export function doImport(data) {
    return request({
        url: '/api/recentdemand/doImport',
        method: 'post',
        data: data
    })
}

//导入用单独的方法
export function batchImport(query) {
    return request({
        url: '/api/publicservicefacility/batch-import',
        method: 'post',
        data: query,
        config:{
            headers:{'Content-Type':'multipart/form-data'}
        }
    })
}
